package com.atjinggu.jinggumail.oauth.feign;

import com.atjinggu.jinggumail.common.utils.R;
import com.atjinggu.jinggumail.oauth.vo.SocialUser;
import com.atjinggu.jinggumail.oauth.vo.UserLoginVo;
import com.atjinggu.jinggumail.oauth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author jingming
 * @Type MemberFeignService.java
 * @Desc
 * @date 2021/3/1 17:37
 */
@FeignClient("jinggumail-member")
public interface MemberFeignService {
    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/social/login")
    public R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;
}